import request from '@/utils/request'

// 获取部门列表
export const getDepartment = () => request.get('/company/department')

export const getDepartmentManager = () => request.get('/sys/user/simple')

export const newDepartment = (data) => request.post('/company/department', data)

export const getDepartmentDetail = (id) => request.get(`/company/department/${id}`)

export const editDepartment = (data) => request.put(`/company/department/` + data.id, data)

export const removeDepartment = (id) => request.delete(`/company/department/${id}`)
